package sfy.md.behavior.chainofresponsibility;

public class Client {
    public static void main(String[] args){

        ReceiverManager<People> receiverManager = new PeopleReceiver();
        Man man = new Man();

        Woman woman = new Woman();
        OldMan oldMan = new OldMan();
        man.setNext(woman);
        woman.setNext(oldMan);

        receiverManager.receive(man);
    }
}
